{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* summary: 第一章实验，开发环境组建\n",
    "* author: Mr. GAO\n",
    "* date：2022-10-8\n",
    "**********"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 安装Python"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 安装miniconda"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "miniconda的下载网址：https://docs.conda.io/en/latest/miniconda.html\n",
    "如下图，根据自己电脑的操作系统选择对应的版本。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<img src=\"./imgs/miniconda.png\">"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "找到上一步下载的miniconda文件，双击安装即可，如下面几张图所示"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<img src=\"./imgs/miniconda_step1.png\">\n",
    "<img src=\"./imgs/miniconda_step2.png\">\n",
    "<img src=\"./imgs/miniconda_step3.png\">\n",
    "<img src=\"./imgs/miniconda_step4.png\">\n",
    "<img src=\"./imgs/miniconda_step5.png\">"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "若是windows的操作系统，安装完成后在windows的开始菜单栏会有Anaconda3选项。\n",
    "\n",
    "<img src=\"imgs/anaconda3.jpg\">"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "点击其中一个菜单可以进入命令行模式，在这里可以进行python编码。如下图：\n",
    "\n",
    "<img src=\"imgs/miniconda_prompt_python.png\">"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 安装VS Code"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 下载VS Code"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "vs code下载网址：https://code.visualstudio.com/\n",
    "\n",
    "<img src=\"./imgs/download_vscode.png\">"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 安装VS Code"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "运行下载的vscode安装文件，安装vscode\n",
    "\n",
    "<img src=\"./imgs/vscode_step1.png\">"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "需要注意，在“选择附加任务”的步骤，选中将“通过code打开操作”添加到Windows资源管理器文件上下文菜单、将“通过code打开操作”添加到Windows资源管理器目录上下文菜单两个选项，以后就可以通过点击鼠标右键选择使用“VS Code”打开文件或工程目录。\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<img src=\"./imgs/vscode_step2.png\">"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 给VS Code安装扩展（Extensions）"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "安装python的扩展。\n",
    "\n",
    "<img src=\"./imgs/vscode_python_extension.png\">"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "安装jupyter扩展。\n",
    "\n",
    "<img src=\"./imgs/vscode_jupyter_extension.png\">"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 一个简单的*.ipynb的案例"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 打印输出一个字符串"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Hello, I'm python. \n"
     ]
    }
   ],
   "source": [
    "print(\"Hello, I'm python. \")"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3.9.13 ('ai_textbook')",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.13"
  },
  "orig_nbformat": 4,
  "vscode": {
   "interpreter": {
    "hash": "b588930fc60eaaede1f012d63146846ff2d52ca36ecacf26d634dd660f785639"
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
